package com.ruoyi.spot.openapi.createNewOrder.domain.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 创建新订单对象 spot_openapi_create_new_order
 * 
 * @author saumell
 * @date 2024-08-13
 */
public class SpotOpenapiCreateNewOrderVO extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Integer id;

    /** 交易对名称 */
    @Excel(name = "交易对名称")
    private String currencyPair;

    /** 调用状态 */
    @Excel(name = "调用状态")
    private String callingState;

    /** 最后执行时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后执行时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastExecutionTime;

    /** 成功次数 */
    @Excel(name = "成功次数")
    private Integer successTimes;

    /** 失败次数 */
    @Excel(name = "失败次数")
    private Integer failTimes;

    /** 失败原因(成功后显示历史失败的原因) */
    @Excel(name = "失败原因(成功后显示历史失败的原因)")
    private String lastFailureReason;

    /** 故障报警 */
    private Integer dangerWarning;

    /** 故障恢复 */
    private Integer safeWarning;

    /** Lark发送报警信息情况 */
    private String larkAlarm;

    @Override
    public String toString() {
        return "SpotOpenapiCreateNewOrderVO{" +
                "id=" + id +
                ", currencyPair='" + currencyPair + '\'' +
                ", callingState='" + callingState + '\'' +
                ", lastExecutionTime=" + lastExecutionTime +
                ", successTimes=" + successTimes +
                ", failTimes=" + failTimes +
                ", lastFailureReason='" + lastFailureReason + '\'' +
                ", dangerWarning=" + dangerWarning +
                ", safeWarning=" + safeWarning +
                ", larkAlarm='" + larkAlarm + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCurrencyPair() {
        return currencyPair;
    }

    public void setCurrencyPair(String currencyPair) {
        this.currencyPair = currencyPair;
    }

    public String getCallingState() {
        return callingState;
    }

    public void setCallingState(String callingState) {
        this.callingState = callingState;
    }

    public Date getLastExecutionTime() {
        return lastExecutionTime;
    }

    public void setLastExecutionTime(Date lastExecutionTime) {
        this.lastExecutionTime = lastExecutionTime;
    }

    public Integer getSuccessTimes() {
        return successTimes;
    }

    public void setSuccessTimes(Integer successTimes) {
        this.successTimes = successTimes;
    }

    public Integer getFailTimes() {
        return failTimes;
    }

    public void setFailTimes(Integer failTimes) {
        this.failTimes = failTimes;
    }

    public String getLastFailureReason() {
        return lastFailureReason;
    }

    public void setLastFailureReason(String lastFailureReason) {
        this.lastFailureReason = lastFailureReason;
    }

    public Integer getDangerWarning() {
        return dangerWarning;
    }

    public void setDangerWarning(Integer dangerWarning) {
        this.dangerWarning = dangerWarning;
    }

    public Integer getSafeWarning() {
        return safeWarning;
    }

    public void setSafeWarning(Integer safeWarning) {
        this.safeWarning = safeWarning;
    }

    public String getLarkAlarm() {
        return larkAlarm;
    }

    public void setLarkAlarm(String larkAlarm) {
        this.larkAlarm = larkAlarm;
    }

    public SpotOpenapiCreateNewOrderVO() {
    }

    public SpotOpenapiCreateNewOrderVO(Integer id, String currencyPair, String callingState, Date lastExecutionTime, Integer successTimes, Integer failTimes, String lastFailureReason, Integer dangerWarning, Integer safeWarning, String larkAlarm) {
        this.id = id;
        this.currencyPair = currencyPair;
        this.callingState = callingState;
        this.lastExecutionTime = lastExecutionTime;
        this.successTimes = successTimes;
        this.failTimes = failTimes;
        this.lastFailureReason = lastFailureReason;
        this.dangerWarning = dangerWarning;
        this.safeWarning = safeWarning;
        this.larkAlarm = larkAlarm;
    }
}
